package com.enjoyor.soa.traffic.rest.efoms.dubbo.impl;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.service.dubbo.efoms.IDubboSurveyDeviceInfoService;
import com.enjoyor.soa.traffic.rest.efoms.dubbo.ISurveyDeviceInfoConsumeService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

@Component
public class SurveyDeviceInfoConsumeService implements ISurveyDeviceInfoConsumeService{

	@Reference(version = "1.0.0", timeout = 10000)
	private IDubboSurveyDeviceInfoService dubboSurveyInfoService;
	@Override
	public ResultPojo getSurveyDeviceInfoPage(String devId, String devTypeCode, String devName, String devIp,
			String devStatusCode, String devFactory, String devAreaCode,String devDeptId, String searchFlag, Page page) {
		// TODO Auto-generated method stub
		return dubboSurveyInfoService.getSurveyDeviceInfoPage(devId, devTypeCode, devName, devIp, devStatusCode, devFactory, devAreaCode,devDeptId, searchFlag, page);
	}

	@Override
	public ResultPojo getSurveyDeviceInfoList(String devId, String devTypeCode, String devName, String devIp,
			String devStatusCode, String devFactory, String devAreaCode,String devDeptId, String searchFlag) {
		// TODO Auto-generated method stub
		return dubboSurveyInfoService.getSurveyDeviceInfoList(devId, devTypeCode, devName, devIp, devStatusCode, devFactory, devAreaCode,devDeptId, searchFlag);
	}

	@Override
	public ResultPojo getSurveyDeviceInfo(String devId) {
		// TODO Auto-generated method stub
		return dubboSurveyInfoService.getSurveyDeviceInfo(devId);
	}

	@Override
	public ResultPojo getSurveyCount(String devTypeCode, String beginTime, String endTime) {
		// TODO Auto-generated method stub
		return dubboSurveyInfoService.getSurveyCount(devTypeCode, beginTime, endTime);
	}

}
